package top.sdaily.schedule;

import java.util.Date;

/**
 * Created by admin on 2017/3/28.
 */
public abstract class ScheduleTask implements Runnable {

    private String name;
    private int loopTimes; //循环次数
    private String loopType;  //循环类型 once,point,period
    private String loopTime; //时间表达式
    private Date startTime;

    @Override
    public abstract void run() ;

    public int getLoopTimes() {
        return loopTimes;
    }

    public void setLoopTimes(int loopTimes) {
        this.loopTimes = loopTimes;
    }

    public String getLoopType() {
        return loopType;
    }

    public void setLoopType(String loopType) {
        this.loopType = loopType;
    }

    public String getLoopTime() {
        return loopTime;
    }

    public void setLoopTime(String loopTime) {
        this.loopTime = loopTime;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
